package JavaSEAdvance.day02_interface.d024_homework;

/**
 * @author Xiao
 * @date 2021/7/16
 */
public abstract class Animal {
    /**
     *      1.定义动物类:
     * 		属性:
     * 			年龄
     * 		行为:
     * 			喝水,吃东西(吃什么不确定)
     */
    private int age;
    public void drink () {
        System.out.println("喝水");
    }
    public abstract void eat();

    public Animal() {
    }

    public Animal(int age) {
        this.age = age;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
